/**
 * @(#)AddReserveRecordDAOImpl.java 2017年9月26日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IAddReserveRecordDAO;
import org.jsbd.boss.domian.channel.AddReserveRecordVo;
import org.jsbd.boss.util.DateUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * TODO 请加入本类的说明
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service
public class AddReserveRecordDAOImpl extends CrackLogBaseDao implements IAddReserveRecordDAO {
	public static final Logger LOGGER = LoggerFactory.getLogger(AddReserveRecordDAOImpl.class);

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IAddReserveRecordDAO#selectRecordList(org.jsbd.boss
	 * .domian.channel.AddReserveRecordVo)
	 */
	@Override
	public List<AddReserveRecordVo> selectRecordList(AddReserveRecordVo record) {
		return super.queryForList("qy_add_reserve_record.SELECT_RECORD_LIST", record);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IAddReserveRecordDAO#insertRecord(org.jsbd.boss.domian
	 * .channel.AddReserveRecordVo)
	 */
	@Override
	public void insertRecord(AddReserveRecordVo record) {
		super.insert("qy_add_reserve_record.INSERT_RECORD", record);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IAddReserveRecordDAO#updateRecord(org.jsbd.boss.domian
	 * .channel.AddReserveRecordVo)
	 */
	@Override
	public void updateRecord(AddReserveRecordVo record) {
		super.update("qy_add_reserve_record.UPDATE_RECORD", record);
	}

	@Override
	public void batchUpdateRecord(List<AddReserveRecordVo> records) {
		super.batchUpdate("qy_add_reserve_record.UPDATE_RECORD", records);
	}

	@Override
	public List<AddReserveRecordVo> selectCountOfMark(String mark) {
		AddReserveRecordVo record = new AddReserveRecordVo();
		record.setRd(Integer.parseInt(DateUtil.getCurrentDateStr()));
		record.setMark(mark);
		return super.queryForList("qy_add_reserve_record.SELECT_RECORD_COUNT_LIST", record);
	}

	/* (non-Javadoc)
	 * @see org.jsbd.boss.dao.IAddReserveRecordDAO#batchInsertRecord(java.util.List)
	 */
	@Override
	public void batchInsertRecord(List<AddReserveRecordVo> records) {
		super.batchInsert("qy_add_reserve_record.INSERT_RECORD", records);
	}
}
